package com.haixiaoke.saas.repository.electronicVisa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.haixiaoke.saas.repository.core.BaseEntity;
import com.haixiaoke.saas.repository.pojo.OrgElectronicVisa;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * 企业合同消耗记录对象 biz_contract_record
 *
 * @author qixi
 * @date 2024-03-08
 */
@Data
public class ContractRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /** 记录类型：1增加 2扣减 */
    public static final Integer RECORD_TYPE_ADD = 1;
    /** 记录类型：1增加 2扣减 */
    public static final Integer RECORD_TYPE_MINUS = 2;

    /** 记录id */
    private Long recordId;

    /** 企业电子签id */
    private Long visaId;

    /** 关联合同id */
    private Long contractId;

    /** 所属机构id */
    private Long orgId;

    /** 机构名称 */
    private String orgName;

    /** 记录类型：1增加 2扣减 */
    private Integer recordType;

    /** 数量 */
    private Long number;

    /** 关联企业合同信息 */
    private OrgElectronicVisa orgElectronicVisa;


    private Date startTime;


    private Date endTime;

}
